import request from '@/config/axios'
/**
 * 分页查询押金
 */
export const pageQuery = (params) => {
  return request.get({ url: '/fee/fee-deposit/page-query', params })
}

/**
 * 交押金
 */
export const create = (data) => {
  return request.post({ url: '/fee/fee-deposit/create', data })
}

/**
 * 测试创建
 */
export const feeCreate = (data) => {
  return request.post({ url: '/fee/fee-deposit/fee-create', data })
}

/**
 * 分页查询押金详情
 */
export const pageQueryDetail = (params) => {
  return request.get({ url: '/fee/fee-deposit/page-query-detail', params })
}

/**
 * 确认缴费
 */
export const confirm = (id) => {
  return request.post({ url: '/fee/fee-deposit/confirm?id=' + id })
}

/**
 * 根据老人ID获取单个押金
 */
export const singleGetByElderId = (id) => {
  return request.get({ url: '/fee/fee-deposit/single-get-by-elder-id?id=' + id })
}
